/**
 *  设备相关接口
 * **/

import request from '@/common/request.js'
import {HTTP_REQUEST_URL} from '@/config.js' 

const ysb_api={}

// 提交数据
ysb_api.submit = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/yunsb/yunsbao',   
	data: data   
}) 

// 获取上周数据
ysb_api.getPrevData = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/yunsb/getlast',   
	data: data   
}) 

// 获取数据列表
ysb_api.getList = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/yunsb/list',   
	data: data   
}) 

// 获取数据详情
ysb_api.getDetail = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/yunsb/info',   
	data: data   
}) 

// 获取周数据
ysb_api.getSelectweek = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/yunsb/selectweek',   
	data: data   
})

// 获取月数据
ysb_api.getSelectMonth = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/yunsb/selectmonth',   
	data: data   
})

// 保存编辑
ysb_api.saveEdit = data => request.globalRequest({
	methods: 'POST',
	url: HTTP_REQUEST_URL+'/yunsb/edit',   
	data: data   
})

 
 
export default ysb_api






